from dam import dam
d = dam()
st = ''
for i in range(1024*4):
    st += "%s %s %s\n"%(d.m1[i],i,oct(i))
print(st)               
try:
    f = open('a.txt','w')
    f.write(st)
    f.close()
except:
    f = open('a.txt','wb')
    f.write(st.encode())
    f.close()